package components.blocks;

import images.GameImagesMap;

import java.awt.Color;

import com.uqbar.vainilla.appearances.Rectangle;

import components.ball.NormalBall;
import components.powerups.PowerUp;

public class PupBlock extends Block {

	private PowerUp power;
	
	public PupBlock(PowerUp pup, double x, double y) {
		super(GameImagesMap.getImage("goldblock"),x, y, 200);
		this.power = pup;
	}
	public PupBlock(PowerUp pup) {
		super(GameImagesMap.getImage("goldblock"), 200);
		this.power = pup;
	}

	public void collideWithBall(NormalBall ball) {
		this.destroyBlock();
		this.getScene().launchPowerUp(this);
	}

	public void setPower(PowerUp power) {
		this.power = power;
	}

	public PowerUp getPower() {
		return power;
	}

}
